package com.homedo.microservice.distributed.id.service.bean.po;

import com.homedo.common.dao.bean.po.base.BasePo;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 单号业务编码定义扩展表
 *
 * @author 作者 jgshun
 * @date 创建时间 2019年03月15日 09时39分50秒
 */
@Table(name = "leaf_alloc_extra_no")
public class LeafAllocExtraNo extends BasePo {
    /**
     * 属性查询列表
     */
    public static final String FIELD_BIZCODE = "bizCode";
    public static final String FIELD_PREFIX = "prefix";
    public static final String FIELD_SUFFIX = "suffix";
    public static final String FIELD_CREATETIME = "createTime";
    /**
     * 列名查询列表
     */
    public static final String COLUMN_BIZ_CODE = "biz_code";
    public static final String COLUMN_PREFIX = "prefix";
    public static final String COLUMN_SUFFIX = "suffix";
    public static final String COLUMN_CREATE_TIME = "create_time";


    @Id


    @Column(name = "biz_code")
    private java.lang.Integer bizCode;


    @Column(name = "prefix")
    private java.lang.String prefix;


    @Column(name = "suffix")
    private java.lang.String suffix;


    @Column(name = "create_time")
    private java.util.Date createTime;

    /**
     * 获取 业务编号 不能大于4095
     *
     * @return bizCode - 业务编号 不能大于4095
     */
    public java.lang.Integer getBizCode() {
        return bizCode;
    }

    /**
     * 设置 业务编号 不能大于4095
     *
     * @param bizCode - 业务编号 不能大于4095
     */
    public void setBizCode(java.lang.Integer bizCode) {
        this.bizCode = bizCode;
    }

    /**
     * 获取 前缀
     *
     * @return prefix - 前缀
     */
    public java.lang.String getPrefix() {
        return prefix;
    }

    /**
     * 设置 前缀
     *
     * @param prefix - 前缀
     */
    public void setPrefix(java.lang.String prefix) {
        this.prefix = prefix;
    }

    /**
     * 获取 后缀
     *
     * @return suffix - 后缀
     */
    public java.lang.String getSuffix() {
        return suffix;
    }

    /**
     * 设置 后缀
     *
     * @param suffix - 后缀
     */
    public void setSuffix(java.lang.String suffix) {
        this.suffix = suffix;
    }

    /**
     * 获取 创建时间
     *
     * @return createTime - 创建时间
     */
    public java.util.Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置 创建时间
     *
     * @param createTime - 创建时间
     */
    public void setCreateTime(java.util.Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        LeafAllocExtraNo that = (LeafAllocExtraNo) o;

        if (bizCode != null ? !bizCode.equals(that.bizCode) : that.bizCode != null) return false;
        if (prefix != null ? !prefix.equals(that.prefix) : that.prefix != null) return false;
        return suffix != null ? suffix.equals(that.suffix) : that.suffix == null;
    }

    @Override
    public int hashCode() {
        int result = bizCode != null ? bizCode.hashCode() : 0;
        result = 31 * result + (prefix != null ? prefix.hashCode() : 0);
        result = 31 * result + (suffix != null ? suffix.hashCode() : 0);
        return result;
    }
}